<template>
	<view class="1">
		<view class="2">
			<uni-card style="border-radius: 15px;">
				<view class="2" style="float: left; margin-left: 20rpx;" @click=toexamine()>
					<u-icon name="rewind-right-fill" color="#aaaaff" size="32"></u-icon>
					<u--text  text="我审批的" style="padding-right: 10rpx;" size="10"></u--text>
				</view>
				<view style="float: left;margin-left: 130rpx" @click=tomylaunch()>
					<u-icon name="file-text-fill" color="#2979ff" size="32"></u-icon>
					<u--text  text="我发起的" style="padding-right: 10rpx;" size="10"></u--text>
					
				</view>
				<view style="float: left;margin-left: 130rpx; margin-bottom: 20rpx;" @click=tomycc()>
					<u-icon name="pushpin-fill" color="#2979ff" size="32"></u-icon>
					<u--text  text="抄送我的" style="" size="10"></u--text>
				</view>
			</uni-card>
		</view>
		
		<view class="" style="margin-left: 30rpx;">
			<uni-title type="h2" title="人事"></uni-title>
		</view>
		<view>
			<uni-card title="入职" thumbnail="/static/img/fximage/x.jpg" @click="toinit()">
				<text>用于人事部门员工入职申请</text>
			</uni-card>
			<uni-card title="转正" thumbnail="/static/img/fximage/x.jpg" @click="tobecome()">
				<text>用于人事部门临时员工转正申请</text>
			</uni-card>
			<uni-card title="调动" thumbnail="/static/img/fximage/x.jpg" @click="totransfer()">
				<text>用于人事部门员工职位调动申请</text>
			</uni-card>
			<uni-card title="离职" thumbnail="/static/img/fximage/x.jpg" @click="toquit()">
				<text>用于员工离职申请</text>
			</uni-card>
			<!-- <uni-card title="招聘" thumbnail="/static/img/fximage/x.jpg" @click="torecurit()">
				<text>用于员工招聘申请</text>
			</uni-card> -->
		</view>
		<view class="" style="margin-left: 30rpx;">
			<uni-title type="h2" title="考勤"></uni-title>
		</view>
		<view class="">
			<uni-card title="补卡" thumbnail="/static/img/fximage/x.jpg" @click="tocard()">
				<text>用于人事部门员工入职申请</text>
			</uni-card>
			<uni-card title="请假" thumbnail="/static/img/fximage/x.jpg" @click="toholiday()">
				<text>用于人事部门员工入职申请</text>
			</uni-card>
			<uni-card title="加班" thumbnail="/static/img/fximage/x.jpg" @click="toworkover()">
				<text>用于人事部门员工入职申请</text>
			</uni-card>
			<uni-card title="出差" thumbnail="/static/img/fximage/x.jpg" @click="totravel()">
				<text>用于人事部门员工入职申请</text>
			</uni-card>
		</view>
		<!-- <view class="" style="margin-left: 30rpx;">
			<uni-title type="h2" title="行政"></uni-title>
		</view> -->
		<!-- <view class="">
			<uni-card title="物品领用" thumbnail="/static/img/fximage/x.jpg" @click="togoods()">
				<text>用于人事部门员工入职申请</text>
			</uni-card>
			<uni-card title="用章申请" thumbnail="/static/img/fximage/x.jpg" @click="toapply()">
				<text>用于人事部门员工入职申请</text>
			</uni-card>
			<uni-card title="物品保修" thumbnail="/static/img/fximage/x.jpg" @click="toguarantee()">
				<text>用于人事部门员工入职申请</text>
			</uni-card>
		</view> -->
		<view class="" style="margin-left: 30rpx;">
			<uni-title type="h2" title="财务"></uni-title>
		</view>
		<view class="">
			<uni-card title="费用报销" thumbnail="/static/img/fximage/x.jpg" @click="toreturn()">
				<text>用于人事部门员工入职申请</text>
			</uni-card>
			<uni-card title="付款申请" thumbnail="/static/img/fximage/x.jpg" @click="topayment()">
				<text>用于人事部门员工入职申请</text>
			</uni-card>
			<uni-card title="合同申请" thumbnail="/static/img/fximage/x.jpg" @click="tocontract()">
				<text>用于人事部门员工入职申请</text>
			</uni-card>
			<uni-card title="备用金申请" thumbnail="/static/img/fximage/x.jpg" @click="tocash()">
				<text>用于人事部门员工入职申请</text>
			</uni-card>
		</view>
		<view class="" style="text-align: center; color: #aaaaff; margin-bottom: 30rpx;">
			没有更多数据了~
		</view>
		<template>
			<view class="wrap">
				<u-back-top :scrollTop="scrollTop" :mode="mode" :iconStyle="iconStyle"></u-back-top>
			</view>
		</template>
	</view>
</template>

<script>
	import request from "../../../utils/request.js"
	export default {
		data() {
			return {
				eid:'',
				user:{},
				scrollTop: 0,
				mode: 'square',
				iconStyle: {
				fontSize: '32rpx',
				color: '#2979ff',
				}
			}
		},
		onLoad() {
			this.users();
			this.eid=this.user.eid
		},
		methods: {
			users(){
				this.user=uni.getStorageSync('user')
				console.log(this.user)
			},
			// 返回顶部方法
			onPageScroll(e) {
				this.scrollTop = e.scrollTop;
			},
			// 跳转我审批的
			toexamine(){
				uni.navigateTo({
					url:'./examine?eid='+ this.eid
				})
			},
			// 跳转我发起的申请
			tomylaunch(){
				uni.navigateTo({
					url:'./launch?eid='+this.eid
				})
			},
			// 跳转抄送我的
			tomycc(){
				uni.navigateTo({
					url:'./cc?eid='+this.eid
				})
			},
			// 跳转人事-入职页面
			toinit(){
				uni.navigateTo({
					url:"./c-rs/init",
				})
			},
			//跳转转正页面
			tobecome(){
				uni.navigateTo({
					url:"./c-rs/become"
				})
			},
			// 跳转调动页面
			totransfer(){
				uni.navigateTo({
					url:"./c-rs/transfer"
				})
			},
			// 跳转离职页面
			toquit(){
				uni.navigateTo({
					url:"./c-rs/quit"
				})
			},
			// 跳转招聘页面
			torecurit(){
				uni.navigateTo({
					url:"./c-rs/recruit"
				})
			},
			// 跳转补卡页面
			tocard(){
				uni.navigateTo({
					url:"./c-kq/card"
				})
			},
			// 跳转请假页面
			toholiday(){
				uni.navigateTo({
					url:"./c-kq/holiday"
				})
			},
			// 跳转加班申请页面
			toworkover(){
				uni.navigateTo({
					url:"./c-kq/workover"
				})
			},
			// 跳转出差页面
			totravel(){
				uni.navigateTo({
					url:"./c-kq/travel"
				})
			},
			// 跳转物品领用页面
			togoods(){
				uni.navigateTo({
					url:"./c-xz/goods"
				})
			},
			// 跳转用章申请页面
			toapply(){
				uni.navigateTo({
					url:"./c-xz/apply"
				})
			},
			// 跳转物品保修页面
			toguarantee(){
				uni.navigateTo({
					url:"./c-xz/guarantee"
				})
			},
			// 跳转费用报销页面
			toreturn(){
				uni.navigateTo({
					url:"./c-cw/return"
				})
			},
			// 跳转付款申请页面
			topayment(){
				uni.navigateTo({
					url:"./c-cw/payment"
				})
			},
			// 跳转合同申请页面
			tocontract(){
				uni.navigateTo({
					url:"./c-cw/contract"
				})
			},
			// 跳转备用金申请页面
			tocash(){
				uni.navigateTo({
					url:"./c-cw/cash"
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
</style>
